
var recommend = {
  init: function () {
    this.render()
    return this
  },
  render: function () {
    var html = ""
    var data = page.data.recommend
    for (var i = 0, l = data.length; i < l; i++) {
      var className = "recommend item ";
      var id = "recommend-" + i;
      var picture = data[i].typePicture
      var src = picture.length && picture[0].picPath2 ? '<img src="' + picture[0].picPath2 + '"/>' : ''
      // var flag = .hanlder(data[i].ctype)flagStrategies
      var flag = utils.useStatus(config.columnTypes[data[i].ctype])
      className += i == 0 ? 'video' : 'border-radius'
      html +=
        '<div class="' + className + '" id="' + id + '">' + flag + src + "</div>";
    }
    $("#recommend").html(html)
    return this
  }
};
